<?php
/**
 * Create by 11li
 * Date 2020/2/20
 * Time 16:51
 *
 */

namespace app\api\controller\v1;


use app\common\controller\Api;
use app\common\service\FundsService;

class Funds extends Api
{
	
	/**
	 * 佣金记录
	 */
	public function commission()
	{
		$page = $this->request->get('page', 1, 'intval');
		$status = $this->request->get('status', 1, 'intval');
		
		$obj = new FundsService();
		$res = $obj->getUserCommissionList($this->auth->id, $page, $status);
		$this->success('查询成功', $res);
	}
}